//
//  Color.m
//  04-HomeWork
//
//  Created by dllo on 16/7/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Color.h"

@implementation Color
- (instancetype)initWithName:(NSString *)name ColorValue:(NSString *)colorValue {
    self = [super init];
    if (self) {
        _name = name;
        _colorValue = colorValue;
    }
    return self;
}
//求key值
- (NSString *)sortKey:(Color *)color {
  NSString *str = [color.name substringToIndex:1];
  return str;
}

- (NSString *)description {
    
    return [NSString stringWithFormat:@"%@ %@",_name, _colorValue];
    
}
@end
